<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>添加警告规则</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../../../resources/css/font.css">
		<link rel="stylesheet" href="../../../resources/css/xadmin.css">
		<script type="text/javascript" src="../../../resources/js/jquery.min.js"></script>
		<script type="text/javascript" src="../../../resources/js/jquery.cookie.js"></script>
		<script src="../../../resources/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="../../../resources/js/xadmin.js"></script>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body>
		<div class="x-body">
			<form class="layui-form" id="ruleadd">
				<div class="layui-form-item">
					<label for="L_rulename" class="layui-form-label">
                    	<span class="x-red">*</span>设备规则名称
                	</label>
					<div class="layui-input-inline">
						<input type="text" id="L_rulename" name="rulename" required="" lay-verify="rulename" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item temperatureu">
					<label for="L_temperatureuUp" class="layui-form-label">
                    <span class="x-red"></span>温度上限（℃）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_temperatureuUp" name="temperatureuUp" lay-verify="temperatureuUp" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item temperatureu">
					<label for="L_temperatureuDown" class="layui-form-label">
                    <span class="x-red"></span>温度下限（℃）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_temperatureuDown" name="temperatureuDown" lay-verify="temperatureuDown" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item humidity">
					<label for="L_humidityUp" class="layui-form-label">
                    <span class="x-red"></span>湿度上限（%rh）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_humidityUp" name="humidityUp" lay-verify="humidityUp" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item humidity">
					<label for="L_humidityDown" class="layui-form-label">
                    <span class="x-red"></span>湿度下限（%rh）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_humidityDown" name="humidityDown" lay-verify="humidityDown" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item pm25Up">
					<label for="L_pm25Up" class="layui-form-label">
                    <span class="x-red"></span>PM2.5上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_pm25Up" name="pm25Up" lay-verify="pm25Up" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item pm25Up">
					<label for="L_pm25Down" class="layui-form-label">
                    <span class="x-red"></span>PM2.5上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_pm25Down" name="pm25Down" lay-verify="pm25Down" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item pm10up">
					<label for="L_pm10up" class="layui-form-label">
                    <span class="x-red"></span>PM10上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_pm10up" name="pm10up" lay-verify="pm10up" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item pm25Up">
					<label for="L_pm10down" class="layui-form-label">
                    <span class="x-red"></span>PM10下限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_pm10down" name="pm10down" lay-verify="pm10down" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item noiseup">
					<label for="L_noiseup" class="layui-form-label">
                    <span class="x-red"></span>噪音上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_noiseup" name="noiseup" lay-verify="noiseup" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item noisedown">
					<label for="L_noisedown" class="layui-form-label">
                    <span class="x-red"></span>噪音下限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_noisedown" name="noisedown" lay-verify="noisedown" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item windspeedup">
					<label for="L_windspeedup" class="layui-form-label">
                    <span class="x-red"></span>风速上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_windspeedup" name="windspeedup" lay-verify="windspeedup" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item windspeeddown">
					<label for="L_windspeeddown" class="layui-form-label">
                    <span class="x-red"></span>风速下限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_windspeeddown" name="windspeeddown" lay-verify="windspeeddown" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item windpowerup">
					<label for="L_windpowerup" class="layui-form-label">
                    <span class="x-red"></span>风力等级上限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_windpowerup" name="windpowerup" lay-verify="windpowerup" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item data-item windpowerdown">
					<label for="L_windpowerdown" class="layui-form-label">
                    <span class="x-red"></span>风力等级下限（μg/m3）
                </label>
					<div class="layui-input-inline">
						<input type="number" id="L_windpowerdown" name="windpowerdown" lay-verify="windpowerdown" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<button class="layui-btn x-btn" lay-filter="add" lay-submit="">增加</button>
				</div>
			</form>
		</div>
		<script type="text/javascript" src="../../layouts/environment/en_warningrule_add.js"></script>
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();

			layui.use('laydate', function() {
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#L_produceddate', //指定元素
					type: 'datetime',
					format: 'yyyy/MM/dd HH:mm:ss',
				});

				//执行一个laydate实例
				laydate.render({
					elem: '#L_leavefactorydate', //指定元素
					type: 'datetime',
					format: 'yyyy/MM/dd HH:mm:ss',
				});

			});
		</script>
	</body>

</html>